import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-event',
  templateUrl: './event.component.html',
  styleUrls: ['./event.component.css']
})
export class EventComponent implements OnInit {
  public title: string;
  public ths: Array<string>;
  public trs: any;
  constructor() { }

  ngOnInit() {
    this.title = '今日事件';
    this.ths = ['事件名称', '对象名称', '发生时间', '结束时间'];
    this.trs = [
      {
        eventName: '事件名称1',
        objectName: '对象名称1',
        startTime: '发生时间1',
        endTime: '结束时间1'
      },
      {
        eventName: '事件名称2',
        objectName: '对象名称2',
        startTime: '发生时间2',
        endTime: '结束时间2'
      },
    ]
  }

}
